import request from '@/utils/myrequest'

export function getList(kvs) {
  return request({
    url: 'config/eqpModel/getlist',
    method: 'get',
    kvs
  })
}

export function get(kvs) {
  return request({
    url: 'config/eqpModel/get',
    method: 'get',
    kvs
  })
}

export function getType() {
  return request({
    url: 'config/equipmentTypes/getList',
    method: 'get'
  })
}

export function getEqpModelList() {
  return request({
    url: '/config/EqpModel/GetEqpModelList',
    method: 'get'
  })
}

export function add(kvs) {
  return request({
    url: 'config/eqpModel/add',
    method: 'post',
    kvs
  })
}

export function del(kvs) {
  return request({
    url: 'config/eqpModel/delete',
    method: 'post',
    kvs
  })
}

export function edit(kvs) {
  return request({
    url: 'config/eqpModel/update',
    method: 'post',
    kvs
  })
}

export function download(kvs) {
  return request({
    url: 'config/download/GetTemplate',
    method: 'get',
    kvs
  })
}

export default { getList, get, add, edit, del, getType, download }
